home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
interc2.zip
/
INTERC.MSG
< prev
next >
Wrap
Text File
|
1991-10-09
|
3KB
|
69 lines
This is a slightly modified version of the program intercep.c, described
in the enclosed message. The changes I made are:
1. I use DOS 2.0, under which Turbo C sets argv[0] to the empty string. I
have made changes so that intercep sets progname="intercep" in this case.
2. I often run intercep on the root directory of my ramdisk, where "./file"
is not a valid synonym for "file". Again, I fixed it so that this works.
3. I changed the file so that no warnings are emitted during compilation.
If anyone knows the original author, please send him this version or ask him
to get in touch with me.
Original message header from comp.binaries.ibm.pc follows ...
--Paul Vojta, vojta@math.berkeley.edu
From: nelson@sun.soe.clarkson.edu (Russ Nelson)
Newsgroups: comp.binaries.ibm.pc
Subject: v02i069: intercep, traces software interrupts
Date: 15 Apr 89 22:18:17 GMT
Summary: interc.arc, traces software interrupts
Approved: dhesi@bsu-cs.bsu.edu
Posting-number: Volume 02, Issue 069
Originally-from: Ned Konz <no email address> modified by Russ Nelson
Submitted-by: Russ Nelson <nelson@sun.soe.clarkson.edu>
[
This is a program to monitor software interrupts invoked by any
program. After you have invoked the program whose behavior you are
tracing, and it has finished executing, a text file is left behind on
disk that gives you a blow-by-blow account of all software interrupts
that were invoked and what register values were passed, as well as a
brief text description of what each one does.
For example, here is what lharc does when it adds a new file to a new
archive:
4FBF:000B 2130 Get DOS version number
4FBF:0159 2135 Get interrupt 00 vector
4FBF:016D 2125 Set interrupt 00 vector to 4FBF:014C
4FBF:00DE 214a Change size of memory block at 4FAF:0000 to 157B paragraphs
4FBF:4229 2125 Set interrupt 23 vector to 4FBF:3854
4FBF:4174 213300 Get control break state
4FBF:4184 213301 Set control break to 01
4FBF:5651 2140 Write 0001 bytes from 552A:1222 to file #0002
... stuff omitted ...
4FBF:5651 2140 Write 0001 bytes from 552A:1222 to file #0002
4FBF:5651 2140 Write 0001 bytes from 552A:FF76 to file #0002
4FBF:2AFF 213700 Get switch character
4FBF:478E 213d Open file (name at 552A:1721) mode 02
4FBF:3A4F 211a Set DTA to 552A:FEF6
4FBF:3A59 214e Begin file search (name at 552A:FF2E) for files with attr. 00
4FBF:372E 2148 Allocate 0100 paragraphs of memory
... lots omitted ...
All software interrupts to be traced are listed in an external data
file. You can modify this list easily with a text editor. Russ Nelson
has revised the program so you can easily specify which software
interrupts it should trace without recompiling it.
The program seems to work well.
-- R.D.
]